#ifndef _CESAR_H_
#define _CESAR_H_

#include "../spanishFreq.h"

/**
 * Checks if the given alphabetArray was cyphered with the Cesar method
 * by comparing it to the one alphabetArray corresponding to the selected
 * language.
 *
 * @param[in]	cypherFreq	The frequencies of the cyephered text.
 * @param[in]	size	      The size of the cyphered message.
 * @param[in]	tole        The tolerance of the comparation between 2 frequencies.
 *                         0 <= tole <=100.
 *
 * @return	Lower than zero in case of error, zero if the cyphering method used
 *          wasn't Cesar. Greater than zero if the method was
 *          transposition.
 */
int checkCesar (alphabetArray cypherFreq, int size, float tole);

/**
 * Gives different solutions to a text Cyphered with the Cesar method.
 *
 * @param[in]	s           The cyphered text.
 * @param[in]	size		   The size of the data.
 * @param[in]	cypherFreq  The cyphered text.
 * @param[in]	top         The number of solutions.
 *
 * @return	Lower than zero in case of error, zero if the cyphering method used
 *          wasn't Cesar. Greater than zero if the method was
 *          transposition.
 */
void solveCesar(int* s, long size, alphabetArray cypherFreq, int top);
                        
#endif 
